<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
	<head>
		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
		<meta name="generator" content="JsDoc Toolkit" />
		
		<title>JsDoc Reference - pwlib.tools.selection</title>

		<style type="text/css">
			/* default.css */
body
{
	font: 12px "Lucida Grande", Tahoma, Arial, Helvetica, sans-serif;
	width: 800px;
}

.header
{
	clear: both;
	background-color: #ccc;
	padding: 8px;
}

h1
{
	font-size: 150%;
	font-weight: bold;
	padding: 0;
	margin: 1em 0 0 .3em;
}

hr
{
	border: none 0;
	border-top: 1px solid #7F8FB1;
	height: 1px;
}

pre.code
{
	display: block;
	padding: 8px;
	border: 1px dashed #ccc;
}

#index
{
	margin-top: 24px;
	float: left;
	width: 160px;
	position: absolute;
	left: 8px;
	background-color: #F3F3F3;
	padding: 8px;
}

#content
{
	margin-left: 190px;
	width: 600px;
}

.classList
{
	list-style-type: none;
	padding: 0;
	margin: 0 0 0 8px;
	font-family: arial, sans-serif;
	font-size: 1em;
	overflow: auto;
}

.classList li
{
	padding: 0;
	margin: 0 0 8px 0;
}

.summaryTable { width: 100%; }

h1.classTitle
{
	font-size:170%;
	line-height:130%;
}

h2 { font-size: 110%; }
caption, div.sectionTitle
{
	background-color: #7F8FB1;
	color: #fff;
	font-size:130%;
	text-align: left;
	padding: 2px 6px 2px 6px;
	border: 1px #7F8FB1 solid;
}

div.sectionTitle { margin-bottom: 8px; }
.summaryTable thead { display: none; }

.summaryTable td
{
	vertical-align: top;
	padding: 4px;
	border-bottom: 1px #7F8FB1 solid;
	border-right: 1px #7F8FB1 solid;
}

/*col#summaryAttributes {}*/
.summaryTable td.attributes
{
	border-left: 1px #7F8FB1 solid;
	width: 140px;
	text-align: right;
}

td.attributes, .fixedFont
{
	line-height: 15px;
	color: #002EBE;
	font-family: "Courier New",Courier,monospace;
	font-size: 13px;
}

.summaryTable td.nameDescription
{
	text-align: left;
	font-size: 13px;
	line-height: 15px;
}

.summaryTable td.nameDescription, .description
{
	line-height: 15px;
	padding: 4px;
	padding-left: 4px;
}

.summaryTable { margin-bottom: 8px; }

ul.inheritsList
{
	list-style: square;
	margin-left: 20px;
	padding-left: 0;
}

.detailList {
	margin-left: 20px; 
	line-height: 15px;
}
.detailList dt { margin-left: 20px; }

.detailList .heading
{
	font-weight: bold;
	padding-bottom: 6px;
	margin-left: 0;
}

.light, td.attributes, .light a:link, .light a:visited
{
	color: #777;
	font-style: italic;
}

.fineprint
{
	text-align: right;
	font-size: 10px;
}
		</style>
	</head>

	<body>
<!-- ============================== header ================================= -->	
		<!-- begin static/header.html -->
		<div id="header">
</div>
		<!-- end static/header.html -->

<!-- ============================== classes index ============================ -->
		<div id="index">
			<!-- begin publish.classesIndex -->
			<div align="center"><a href="../index.html">Class Index</a>
| <a href="../files.html">File Index</a></div>
<hr />
<h2>Classes</h2>
<ul class="classList">
	
	<li><i><a href="../symbols/_global_.html">_global_</a></i></li>
	
	<li><a href="../symbols/PaintWeb.html">PaintWeb</a></li>
	
	<li><a href="../symbols/pwlib.html">pwlib</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.html">pwlib.appEvent</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.appDestroy.html">pwlib.appEvent.appDestroy</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.appInit.html">pwlib.appEvent.appInit</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.canvasSizeChange.html">pwlib.appEvent.canvasSizeChange</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.clipboardUpdate.html">pwlib.appEvent.clipboardUpdate</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.commandRegister.html">pwlib.appEvent.commandRegister</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.commandUnregister.html">pwlib.appEvent.commandUnregister</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.configChange.html">pwlib.appEvent.configChange</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.extensionRegister.html">pwlib.appEvent.extensionRegister</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.extensionUnregister.html">pwlib.appEvent.extensionUnregister</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.guiFloatingPanelStateChange.html">pwlib.appEvent.guiFloatingPanelStateChange</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.guiHide.html">pwlib.appEvent.guiHide</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.guiResizeEnd.html">pwlib.appEvent.guiResizeEnd</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.guiResizeMouseMove.html">pwlib.appEvent.guiResizeMouseMove</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.guiResizeStart.html">pwlib.appEvent.guiResizeStart</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.guiShow.html">pwlib.appEvent.guiShow</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.guiTabActivate.html">pwlib.appEvent.guiTabActivate</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.historyUpdate.html">pwlib.appEvent.historyUpdate</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.imageCrop.html">pwlib.appEvent.imageCrop</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.imageSave.html">pwlib.appEvent.imageSave</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.imageSaveResult.html">pwlib.appEvent.imageSaveResult</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.imageSizeChange.html">pwlib.appEvent.imageSizeChange</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.imageZoom.html">pwlib.appEvent.imageZoom</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.shadowAllow.html">pwlib.appEvent.shadowAllow</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.toolActivate.html">pwlib.appEvent.toolActivate</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.toolPreactivate.html">pwlib.appEvent.toolPreactivate</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.toolRegister.html">pwlib.appEvent.toolRegister</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.toolUnregister.html">pwlib.appEvent.toolUnregister</a></li>
	
	<li><a href="../symbols/pwlib.appEvent.viewportSizeChange.html">pwlib.appEvent.viewportSizeChange</a></li>
	
	<li><a href="../symbols/pwlib.appEvents.html">pwlib.appEvents</a></li>
	
	<li><a href="../symbols/pwlib.browser.html">pwlib.browser</a></li>
	
	<li><a href="../symbols/pwlib.dom.html">pwlib.dom</a></li>
	
	<li><a href="../symbols/pwlib.dom.KeyboardEventListener.html">pwlib.dom.KeyboardEventListener</a></li>
	
	<li><a href="../symbols/pwlib.dom.keyCodes.html">pwlib.dom.keyCodes</a></li>
	
	<li><a href="../symbols/pwlib.dom.keyCodes_fixes.html">pwlib.dom.keyCodes_fixes</a></li>
	
	<li><a href="../symbols/pwlib.dom.keyCodes_Safari2.html">pwlib.dom.keyCodes_Safari2</a></li>
	
	<li><a href="../symbols/pwlib.dom.keyNames.html">pwlib.dom.keyNames</a></li>
	
	<li><a href="../symbols/pwlib.extensions.html">pwlib.extensions</a></li>
	
	<li><a href="../symbols/pwlib.extensions.colormixer.html">pwlib.extensions.colormixer</a></li>
	
	<li><a href="../symbols/pwlib.extensions.moodle.html">pwlib.extensions.moodle</a></li>
	
	<li><a href="../symbols/pwlib.extensions.mousekeys.html">pwlib.extensions.mousekeys</a></li>
	
	<li><a href="../symbols/pwlib.fileCache.html">pwlib.fileCache</a></li>
	
	<li><a href="../symbols/pwlib.gui.html">pwlib.gui</a></li>
	
	<li><a href="../symbols/pwlib.guiColorInput.html">pwlib.guiColorInput</a></li>
	
	<li><a href="../symbols/pwlib.guiFloatingPanel.html">pwlib.guiFloatingPanel</a></li>
	
	<li><a href="../symbols/pwlib.guiResizer.html">pwlib.guiResizer</a></li>
	
	<li><a href="../symbols/pwlib.guiTabPanel.html">pwlib.guiTabPanel</a></li>
	
	<li><a href="../symbols/pwlib.tools.html">pwlib.tools</a></li>
	
	<li><a href="../symbols/pwlib.tools.bcurve.html">pwlib.tools.bcurve</a></li>
	
	<li><a href="../symbols/pwlib.tools.cbucket.html">pwlib.tools.cbucket</a></li>
	
	<li><a href="../symbols/pwlib.tools.cpicker.html">pwlib.tools.cpicker</a></li>
	
	<li><a href="../symbols/pwlib.tools.ellipse.html">pwlib.tools.ellipse</a></li>
	
	<li><a href="../symbols/pwlib.tools.eraser.html">pwlib.tools.eraser</a></li>
	
	<li><a href="../symbols/pwlib.tools.hand.html">pwlib.tools.hand</a></li>
	
	<li><a href="../symbols/pwlib.tools.insertimg.html">pwlib.tools.insertimg</a></li>
	
	<li><a href="../symbols/pwlib.tools.line.html">pwlib.tools.line</a></li>
	
	<li><a href="../symbols/pwlib.tools.pencil.html">pwlib.tools.pencil</a></li>
	
	<li><a href="../symbols/pwlib.tools.polygon.html">pwlib.tools.polygon</a></li>
	
	<li><a href="../symbols/pwlib.tools.rectangle.html">pwlib.tools.rectangle</a></li>
	
	<li><a href="../symbols/pwlib.tools.selection.html">pwlib.tools.selection</a></li>
	
	<li><a href="../symbols/pwlib.tools.text.html">pwlib.tools.text</a></li>
	
</ul>
<hr />
			<!-- end publish.classesIndex -->
		</div>
		
		<div id="content">
<!-- ============================== class title ============================ -->
			<h1 class="classTitle">
				
				Class pwlib.tools.selection
			</h1>

<!-- ============================== class summary ========================== -->			
			<p class="description">
				
			
				The selection tool.
				
				
					<br /><i>Defined in: </i> <a href="../symbols/src/src_tools_selection.js.html">selection.js</a>.
				
			</p>

<!-- ============================== constructor summary ==================== -->			
			
			<table class="summaryTable" cellspacing="0" summary="A summary of the constructor documented in the class pwlib.tools.selection.">
				<caption>Class Summary</caption>
				<thead>
					<tr>
						<th scope="col">Constructor Attributes</th>
						<th scope="col">Constructor Name and Description</th>
					</tr>
				</thead>
				<tbody>
					<tr>
						<td class="attributes">&nbsp;</td>
						<td class="nameDescription" >
							<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#constructor">pwlib.tools.selection</a></b>(app)
							</div>
							<div class="description"></div>
						</td>
					</tr>
				</tbody>
			</table>
			

<!-- ============================== properties summary ===================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the fields documented in the class pwlib.tools.selection.">
					<caption>Field Summary</caption>
					<thead>
						<tr>
							<th scope="col">Field Attributes</th>
							<th scope="col">Field Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#-lastSel">lastSel</a></b>
								</div>
								<div class="description">The last selection rectangle that was drawn.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#-mouseArea">mouseArea</a></b>
								</div>
								<div class="description">The area type under the current mouse location.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#-mouseResize">mouseResize</a></b>
								</div>
								<div class="description">The resize type.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#-needsRedraw">needsRedraw</a></b>
								</div>
								<div class="description">Tells if the drawing canvas needs to be updated or not.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#selection">selection</a></b>
								</div>
								<div class="description">Holds selection information and image.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#state">state</a></b>
								</div>
								<div class="description">Selection state.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;constant&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#STATE_DRAGGING">STATE_DRAGGING</a></b>
								</div>
								<div class="description">The user is dragging/moving the selection rectangle.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;constant&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#STATE_DRAWING">STATE_DRAWING</a></b>
								</div>
								<div class="description">The user is drawing a selection.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;constant&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#STATE_NONE">STATE_NONE</a></b>
								</div>
								<div class="description">No selection is available.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;constant&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#STATE_PENDING">STATE_PENDING</a></b>
								</div>
								<div class="description">The selection has been dropped, and the mouse button is down.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;constant&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#STATE_RESIZING">STATE_RESIZING</a></b>
								</div>
								<div class="description">The user is resizing the selection rectangle.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;constant&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#STATE_SELECTED">STATE_SELECTED</a></b>
								</div>
								<div class="description">The selection rectangle is available.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#-timer">timer</a></b>
								</div>
								<div class="description">The interval ID used for invoking the drawing operation every few 
milliseconds.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#-x0">x0</a></b>
								</div>
								<div class="description">Holds the starting point on the <var>x</var> axis of the image, for any 
ongoing operation.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont">
								<b><a href="../symbols/pwlib.tools.selection.html#-y0">y0</a></b>
								</div>
								<div class="description">Holds the starting point on the <var>y</var> axis of the image, for the any  
ongoing operation.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			

<!-- ============================== methods summary ======================== -->
			
				
				
				<table class="summaryTable" cellspacing="0" summary="A summary of the methods documented in the class pwlib.tools.selection.">
					<caption>Method Summary</caption>
					<thead>
						<tr>
							<th scope="col">Method Attributes</th>
							<th scope="col">Method Name and Description</th>
						</tr>
					</thead>
					<tbody>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#activate">activate</a></b>()
								</div>
								<div class="description">The tool activation code.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#clipboardPaste">clipboardPaste</a></b>()
								</div>
								<div class="description">Paste an image from the "clipboard".</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#deactivate">deactivate</a></b>()
								</div>
								<div class="description">The tool deactivation code.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-ev_canvasSizeChange">ev_canvasSizeChange</a></b>(ev)
								</div>
								<div class="description">The <code>canvasSizeChange</code> application event handler.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-ev_configChange">ev_configChange</a></b>(ev)
								</div>
								<div class="description">The <code>configChange</code> application event handler.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#keydown">keydown</a></b>(ev)
								</div>
								<div class="description">The <code>keydown</code> event handler.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-marqueeHide">marqueeHide</a></b>()
								</div>
								<div class="description">Hide the selection marquee element.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-marqueeMousedown">marqueeMousedown</a></b>(ev)
								</div>
								<div class="description">The <code>mousedown</code> event handler for the selection marquee element.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-marqueeMousemove">marqueeMousemove</a></b>(ev)
								</div>
								<div class="description">The <code>mousemove</code> event handler for the selection marquee element.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-marqueeMouseup">marqueeMouseup</a></b>(ev)
								</div>
								<div class="description">The <code>mouseup</code> event handler for the selection marquee element.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-mouseAreaUpdate">mouseAreaUpdate</a></b>()
								</div>
								<div class="description">Determine the are where the mouse is located: if it is inside or outside of 
the selection rectangle, or on the selection border.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#mousedown">mousedown</a></b>(ev)
								</div>
								<div class="description">The <code>mousedown</code> event handler.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#mousemove">mousemove</a></b>(ev)
								</div>
								<div class="description">The <code>mousemove</code> event handler.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#mouseup">mouseup</a></b>(ev)
								</div>
								<div class="description">The <code>mouseup</code> event handler.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#preActivate">preActivate</a></b>()
								</div>
								<div class="description">The tool preactivation code.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectAll">selectAll</a></b>()
								</div>
								<div class="description">Select all the entire image.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-selectionBufferInit">selectionBufferInit</a></b>()
								</div>
								<div class="description">Initialize the selection buffer, when the user starts dragging or resizing 
the selected pixels.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectionCopy">selectionCopy</a></b>()
								</div>
								<div class="description">Copy the selected pixels.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectionCrop">selectionCrop</a></b>()
								</div>
								<div class="description">Crop the image to selection width and height.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectionCut">selectionCut</a></b>()
								</div>
								<div class="description">Cut the selected pixels.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectionDelete">selectionDelete</a></b>()
								</div>
								<div class="description">Perform selection delete.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-selectionDrag">selectionDrag</a></b>()
								</div>
								<div class="description">Perform the selection drag operation.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-selectionDraw">selectionDraw</a></b>()
								</div>
								<div class="description">Perform the selection rectangle drawing operation.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectionDrop">selectionDrop</a></b>()
								</div>
								<div class="description">Drop the current selection.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectionFill">selectionFill</a></b>()
								</div>
								<div class="description">Fill the available selection with the current 
<var>bufferContext.fillStyle</var>.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#selectionMerge">selectionMerge</a></b>()
								</div>
								<div class="description">Merge the selection buffer onto the current image layer.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-selectionMergeStrict">selectionMergeStrict</a></b>()
								</div>
								<div class="description">Perform the selection buffer merge onto the current image layer.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-selectionResize">selectionResize</a></b>()
								</div>
								<div class="description">Perform the selection resize operation.</div>
							</td>
						</tr>
					
						<tr>
							<td class="attributes">&lt;private&gt; &lt;inner&gt; &nbsp;</td>
							<td class="nameDescription">
								<div class="fixedFont"><b><a href="../symbols/pwlib.tools.selection.html#-timerFn">timerFn</a></b>()
								</div>
								<div class="description">The timer function.</div>
							</td>
						</tr>
					
					</tbody>
				</table>
				
				
				
			
<!-- ============================== events summary ======================== -->
			

<!-- ============================== constructor details ==================== -->		
			
			<div class="details"><a name="constructor"> </a>
				<div class="sectionTitle">
					Class Detail
				</div>
				
				<div class="fixedFont">
						<b>pwlib.tools.selection</b>(app)
				</div>
				
				<div class="description">
					
					
				</div>
				
				
				
				
					
						<dl class="detailList">
						<dt class="heading">Parameters:</dt>
						
							<dt>
								<span class="light fixedFont">{<a href="../symbols/PaintWeb.html">PaintWeb</a>}</span>  <b>app</b>
								
							</dt>
								<dd>Reference to the main paint application object.</dd>
						
						</dl>
					
					
					
					
					
					
					

			</div>
			

<!-- ============================== field details ========================== -->		
			
				<div class="sectionTitle">
					Field Detail
				</div>
				
					<a name="-lastSel"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{Object}</span>
					<b>lastSel</b>
					
					</div>
					<div class="description">
						The last selection rectangle that was drawn. This is used by the selection 
drawing functions.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-mouseArea"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{String}</span>
					<b>mouseArea</b>
					
					</div>
					<div class="description">
						The area type under the current mouse location.

<p>When the selection is available the mouse location can be on top/inside 
the selection rectangle, on the border of the selection, or outside the 
selection.

<p>Possible values: 'in', 'out', 'border'.
						
						
					</div>
					
					

						
						
						
						
							<dl class="detailList">
							<dt class="heading">Default Value:</dt>
							<dd>
								'out'
							</dd>
							</dl>
						

					<hr />
				
					<a name="-mouseResize"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{String}</span>
					<b>mouseResize</b>
					
					</div>
					<div class="description">
						The resize type. If the mouse is on top of the selection border, then the 
selection can be resized. The direction of the resize operation is 
determined by the location of the mouse.

<p>While the user resizes the selection this variable can hold the 
following values: 'n' (North), 'ne' (North-East), 'e' (East), 'se' 
(South-East), 's' (South), 'sw' (South-West), 'w' (West), 'nw' 
(North-West).
						
						
					</div>
					
					

						
						
						
						
							<dl class="detailList">
							<dt class="heading">Default Value:</dt>
							<dd>
								null
							</dd>
							</dl>
						

					<hr />
				
					<a name="-needsRedraw"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{Boolean}</span>
					<b>needsRedraw</b>
					
					</div>
					<div class="description">
						Tells if the drawing canvas needs to be updated or not.
						
						
					</div>
					
					

						
						
						
						
							<dl class="detailList">
							<dt class="heading">Default Value:</dt>
							<dd>
								false
							</dd>
							</dl>
						

					<hr />
				
					<a name="selection"> </a>
					<div class="fixedFont">
					
					<span class="light">{Object}</span>
					<b>selection</b>
					
					</div>
					<div class="description">
						Holds selection information and image.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="state"> </a>
					<div class="fixedFont">
					
					<span class="light">{Number}</span>
					<b>state</b>
					
					</div>
					<div class="description">
						Selection state. Known states:

<ul>
  <li><a href="../symbols/pwlib.tools.selection.html#STATE_PENDING">pwlib.tools.selection#STATE_PENDING</a> - Selection dropped after 
  the <code>mousedown</code> event is fired. The script can switch to 
  STATE_DRAWING if the mouse moves, or to STATE_NONE if it does not 
  (allowing the user to drop the selection).

  <li><a href="../symbols/pwlib.tools.selection.html#STATE_NONE">pwlib.tools.selection#STATE_NONE</a> - No selection is available.

  <li><a href="../symbols/pwlib.tools.selection.html#STATE_DRAWING">pwlib.tools.selection#STATE_DRAWING</a> - The user is drawing the 
  selection rectangle.

  <li><a href="../symbols/pwlib.tools.selection.html#STATE_SELECTED">pwlib.tools.selection#STATE_SELECTED</a> - The selection 
  rectangle is available.

  <li><a href="../symbols/pwlib.tools.selection.html#STATE_DRAGGING">pwlib.tools.selection#STATE_DRAGGING</a> - The user is 
  dragging/moving the current selection.

  <li><a href="../symbols/pwlib.tools.selection.html#STATE_RESIZING">pwlib.tools.selection#STATE_RESIZING</a> - The user is resizing 
  the current selection.
</ul>
						
						
					</div>
					
					

						
						
						
						
							<dl class="detailList">
							<dt class="heading">Default Value:</dt>
							<dd>
								STATE_NONE
							</dd>
							</dl>
						

					<hr />
				
					<a name="STATE_DRAGGING"> </a>
					<div class="fixedFont">&lt;constant&gt; 
					
					
					<b>STATE_DRAGGING</b>
					
					</div>
					<div class="description">
						The user is dragging/moving the selection rectangle.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="STATE_DRAWING"> </a>
					<div class="fixedFont">&lt;constant&gt; 
					
					
					<b>STATE_DRAWING</b>
					
					</div>
					<div class="description">
						The user is drawing a selection.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="STATE_NONE"> </a>
					<div class="fixedFont">&lt;constant&gt; 
					
					
					<b>STATE_NONE</b>
					
					</div>
					<div class="description">
						No selection is available.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="STATE_PENDING"> </a>
					<div class="fixedFont">&lt;constant&gt; 
					
					
					<b>STATE_PENDING</b>
					
					</div>
					<div class="description">
						The selection has been dropped, and the mouse button is down. The user has 
two choices: he releases the mouse button, thus the selection is dropped 
and the tool switches to STATE_NONE, or he moves the mouse in order to 
start a new selection (STATE_DRAWING).
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="STATE_RESIZING"> </a>
					<div class="fixedFont">&lt;constant&gt; 
					
					
					<b>STATE_RESIZING</b>
					
					</div>
					<div class="description">
						The user is resizing the selection rectangle.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="STATE_SELECTED"> </a>
					<div class="fixedFont">&lt;constant&gt; 
					
					
					<b>STATE_SELECTED</b>
					
					</div>
					<div class="description">
						The selection rectangle is available.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-timer"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>timer</b>
					
					</div>
					<div class="description">
						The interval ID used for invoking the drawing operation every few 
milliseconds.
						
						
					</div>
					
					

						
						
						
							<dl class="detailList">
							<dt class="heading">See:</dt>
							
							<dd>PaintWeb.config.toolDrawDelay</dd>
							
							</dl>
						
						

					<hr />
				
					<a name="-x0"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{Number}</span>
					<b>x0</b>
					
					</div>
					<div class="description">
						Holds the starting point on the <var>x</var> axis of the image, for any 
ongoing operation.
						
						
					</div>
					
					

						
						
						
						

					<hr />
				
					<a name="-y0"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{Number}</span>
					<b>y0</b>
					
					</div>
					<div class="description">
						Holds the starting point on the <var>y</var> axis of the image, for the any  
ongoing operation.
						
						
					</div>
					
					

						
						
						
						

					
				
			

<!-- ============================== method details ========================= -->		
			
				<div class="sectionTitle">
					Method Detail
				</div>
				
					<a name="activate"> </a>
					<div class="fixedFont">
					
					
					<b>activate</b>()
					
					</div>
					<div class="description">
						The tool activation code. This method sets-up multiple event listeners for 
several target objects.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="clipboardPaste"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>clipboardPaste</b>()
					
					</div>
					<div class="description">
						Paste an image from the "clipboard". The <a href="../symbols/PaintWeb.html#clipboard">PaintWeb#clipboard</a> object 
must be an ImageData. This method will generate a new selection which will 
hold the pasted image.

<p>The <a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a> application event is 
dispatched.

<p>If the PaintWeb.config.selection.transform value is false, then 
it becomes true. The <a href="../symbols/pwlib.appEvent.configChange.html">pwlib.appEvent.configChange</a> application is 
then dispatched.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="deactivate"> </a>
					<div class="fixedFont">
					
					
					<b>deactivate</b>()
					
					</div>
					<div class="description">
						The tool deactivation code. This removes all event listeners and cleans up 
the document.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="-ev_canvasSizeChange"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>ev_canvasSizeChange</b>(ev)
					
					</div>
					<div class="description">
						The <code>canvasSizeChange</code> application event handler. This method 
makes sure the selection size stays in sync.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/pwlib.appEvent.canvasSizeChange.html">pwlib.appEvent.canvasSizeChange</a>}</span> <b>ev</b>
									
								</dt>
								<dd>The application event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="-ev_configChange"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>ev_configChange</b>(ev)
					
					</div>
					<div class="description">
						The <code>configChange</code> application event handler. This method makes 
sure that changes to the selection transparency configuration option are 
applied.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{<a href="../symbols/pwlib.appEvent.configChange.html">pwlib.appEvent.configChange</a>}</span> <b>ev</b>
									
								</dt>
								<dd>The application event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="keydown"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>keydown</b>(ev)
					
					</div>
					<div class="description">
						The <code>keydown</code> event handler. This method calls selection-related 
commands associated to keyboard shortcuts.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Event}</span> <b>ev</b>
									
								</dt>
								<dd>The DOM Event object.</dd>
							
							</dl>
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the keyboard shortcut was recognized, or false 
if not.</dd>
							
							</dl>
						
						
						
							<dl class="detailList">
							<dt class="heading">See:</dt>
							
								<dd>PaintWeb.config.selection.keys holds the keyboard shortcuts 
configuration.</dd>
							
							</dl>
						

					<hr />
				
					<a name="-marqueeHide"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>marqueeHide</b>()
					
					</div>
					<div class="description">
						Hide the selection marquee element.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="-marqueeMousedown"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>marqueeMousedown</b>(ev)
					
					</div>
					<div class="description">
						The <code>mousedown</code> event handler for the selection marquee element.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Event}</span> <b>ev</b>
									
								</dt>
								<dd>The DOM Event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="-marqueeMousemove"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>marqueeMousemove</b>(ev)
					
					</div>
					<div class="description">
						The <code>mousemove</code> event handler for the selection marquee element.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Event}</span> <b>ev</b>
									
								</dt>
								<dd>The DOM Event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="-marqueeMouseup"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>marqueeMouseup</b>(ev)
					
					</div>
					<div class="description">
						The <code>mouseup</code> event handler for the selection marquee element.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Event}</span> <b>ev</b>
									
								</dt>
								<dd>The DOM Event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="-mouseAreaUpdate"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>mouseAreaUpdate</b>()
					
					</div>
					<div class="description">
						Determine the are where the mouse is located: if it is inside or outside of 
the selection rectangle, or on the selection border.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="mousedown"> </a>
					<div class="fixedFont">
					
					
					<b>mousedown</b>(ev)
					
					</div>
					<div class="description">
						The <code>mousedown</code> event handler. Depending on the mouse location, 
this method does initiate different selection operations: drawing, 
dropping, dragging or resizing.

<p>Hold the <kbd>Control</kbd> key down to temporarily toggle the 
transformation mode.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Event}</span> <b>ev</b>
									
								</dt>
								<dd>The DOM Event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="mousemove"> </a>
					<div class="fixedFont">
					
					
					<b>mousemove</b>(ev)
					
					</div>
					<div class="description">
						The <code>mousemove</code> event handler.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Event}</span> <b>ev</b>
									
								</dt>
								<dd>The DOM Event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="mouseup"> </a>
					<div class="fixedFont">
					
					
					<b>mouseup</b>(ev)
					
					</div>
					<div class="description">
						The <code>mouseup</code> event handler. This method ends any selection 
operation.

<p>This method dispatches the <a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a> 
application event when the selection state is changed or when the selection 
size/location is updated.
						
						
					</div>
					
					
					
						
							<dl class="detailList">
							<dt class="heading">Parameters:</dt>
							
								<dt>
									<span class="light fixedFont">{Event}</span> <b>ev</b>
									
								</dt>
								<dd>The DOM Event object.</dd>
							
							</dl>
						
						
						
						
						
						
						

					<hr />
				
					<a name="preActivate"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>preActivate</b>()
					
					</div>
					<div class="description">
						The tool preactivation code. This function prepares the selection canvas 
element.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the activation did not fail, or false otherwise.  
If false is returned, the selection tool cannot be activated.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selectAll"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectAll</b>()
					
					</div>
					<div class="description">
						Select all the entire image.

<p>This method dispatches the <a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a> 
application event.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="-selectionBufferInit"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>selectionBufferInit</b>()
					
					</div>
					<div class="description">
						Initialize the selection buffer, when the user starts dragging or resizing 
the selected pixels.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="selectionCopy"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectionCopy</b>()
					
					</div>
					<div class="description">
						Copy the selected pixels. The associated ImageData is stored in 
<a href="../symbols/PaintWeb.html#clipboard">PaintWeb#clipboard</a>.

<p>This method dispatches the <a href="../symbols/pwlib.appEvent.clipboardUpdate.html">pwlib.appEvent.clipboardUpdate</a> 
application event.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selectionCrop"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectionCrop</b>()
					
					</div>
					<div class="description">
						Crop the image to selection width and height. The selected pixels become 
the image itself.

<p>This method invokes the this#selectionMerge and 
<a href="../symbols/PaintWeb.html#imageCrop">PaintWeb#imageCrop</a> methods.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selectionCut"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectionCut</b>()
					
					</div>
					<div class="description">
						Cut the selected pixels. The associated ImageData is stored in 
<a href="../symbols/PaintWeb.html#clipboard">PaintWeb#clipboard</a>.

<p>This method dispatches two application events: 
<a href="../symbols/pwlib.appEvent.clipboardUpdate.html">pwlib.appEvent.clipboardUpdate</a> and <a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a>.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selectionDelete"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectionDelete</b>()
					
					</div>
					<div class="description">
						Perform selection delete.

<p>This method changes the PaintWeb.config.selection.transform 
value to false if the current selection has pixels that are currently being 
manipulated. In such cases, the <a href="../symbols/pwlib.appEvent.configChange.html">pwlib.appEvent.configChange</a> 
application event is also dispatched.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="-selectionDrag"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{false|Array}</span>
					<b>selectionDrag</b>()
					
					</div>
					<div class="description">
						Perform the selection drag operation.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{false|Array}</span> False is returned if the selection is too small, 
otherwise an array of two elements is returned. The array holds the 
selection coordinates, x and y.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="-selectionDraw"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>selectionDraw</b>()
					
					</div>
					<div class="description">
						Perform the selection rectangle drawing operation.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="selectionDrop"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectionDrop</b>()
					
					</div>
					<div class="description">
						Drop the current selection.

<p>This method dispatches the <a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a> 
application event.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selectionFill"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectionFill</b>()
					
					</div>
					<div class="description">
						Fill the available selection with the current 
<var>bufferContext.fillStyle</var>.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="selectionMerge"> </a>
					<div class="fixedFont">
					
					<span class="light">{Boolean}</span>
					<b>selectionMerge</b>()
					
					</div>
					<div class="description">
						Merge the selection buffer onto the current image layer.

<p>This method dispatches the <a href="../symbols/pwlib.appEvent.selectionChange.html">pwlib.appEvent.selectionChange</a> 
application event.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{Boolean}</span> True if the operation was successful, or false if not.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="-selectionMergeStrict"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>selectionMergeStrict</b>()
					
					</div>
					<div class="description">
						Perform the selection buffer merge onto the current image layer.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					<hr />
				
					<a name="-selectionResize"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					<span class="light">{false|Array}</span>
					<b>selectionResize</b>()
					
					</div>
					<div class="description">
						Perform the selection resize operation.
						
						
					</div>
					
					
					
						
						
						
						
						
							<dl class="detailList">
							<dt class="heading">Returns:</dt>
							
								<dd><span class="light fixedFont">{false|Array}</span> False is returned if the selection is too small, 
otherwise an array of four elements is returned. The array holds the 
selection information: x, y, width and height.</dd>
							
							</dl>
						
						
						

					<hr />
				
					<a name="-timerFn"> </a>
					<div class="fixedFont">&lt;private&gt; &lt;inner&gt; 
					
					
					<b>timerFn</b>()
					
					</div>
					<div class="description">
						The timer function. When the mouse button is down, this method performs the 
dragging/resizing operation. When the mouse button is not down, this method 
simply tracks the mouse location for the purpose of determining the area 
being pointed at: the selection, the borders, or if the mouse is outside 
the selection.
						
						
					</div>
					
					
					
						
						
						
						
						
						
						

					
				
			
			
<!-- ============================== event details ========================= -->		
			
			
			<hr />
		</div>

		
<!-- ============================== footer ================================= -->
		<div class="fineprint" style="clear:both">
			
			Documentation generated by <a href="http://code.google.com/p/jsdoc-toolkit/" target="_blank">JsDoc Toolkit</a> 2.3.0 on Sat Jun 26 2010 21:57:03 GMT+0300 (EEST)
		</div>
	</body>
</html>
